home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Copy(REL2) ARP User's Manual Copy(REL2)
-
-
-
- NAME
- Copy - Copy files
-
- SYNOPSIS
- COPY FROM TO/A FLAGS/K ALL/S QUIET/S
-
- DESCRIPTION
- COPY duplicates the contents of the file or files (if
- wildcards are used) of its FROM argument in the file or
- directory specified in its TO argument, over writing any
- existing file or files of the same names.
-
- You may specify a directory name as the FROM argument, which
- will cause COPY to copy all the files in the FROM directory
- to the destination directory. The destination directory
- must exist for the Copy to succeed. If you do not specify a
- FROM argument, the current directory will be used.
-
- The ARP Copy replacement also allows you to specify the
- Current directory as a destination without typing the entire
- path to the current directory. To specify the current
- directory as destination, simply use the '*' character as
- the destination name. You can also do a simple form of
- rename as you copy by specifying an optional prefix and
- postfix to the current directory shorthand. The syntax is:
-
- <optional_prefix>*<optional_postfix>
-
- You may specify neither, one or both of these optional tags.
- Note that it is possible to exceed the length of a legal
- AmigaDOS filename (30 characters as of this writing). If
- this occurs, the name will be silently truncated.
-
- The behaviour of COPY may be modified by using the following
- switches:
-
- ALL - this switch will cause Copy to duplicate the contents
- of that entire branch of the directory tree. It
- will recursively enter directories, creating them as
- needed and duplicating their contents. Without this
- switch, only the first level of the directory
- hierarchy will be duplicated.
-
- QUIET - If you specify wildcards in the source, or if you
- use the ALL switch, copy will be quite verbal about
- what it is copying or creating. If you find this
- behaviour annoying, just specify the QUIET switch,
- and only errors will be reported.
-
- FLAGS - This is an ARP addition, not found in the original
- BCPL version of this program. The Flags string
- controls the copying of Filenotes, the original
-
-
-
- Page 1 (printed 2/22/88)
-
-
-
-
-
-
- Copy(REL2) ARP User's Manual Copy(REL2)
-
-
-
- date, and the protect bits. The original BCPL
- program just proceeded as though none of these
- existed. You can use any of the following as an
- argument to Flags:
-
- N - copy FILENOTES
- C - copy original DATESTAMP
- rweda - prevent these actions
- RWEDA - allow these actions
-
- To copy the original protect flags, simply omit the
- appropriate protect description. If you have
- religious convictions about any of the above, see
- the description of 'copyflags', below.
-
- ENVIRONMENT VARIABLES
- Copy uses the value of the environment variable 'copyflags',
- if defined, in exactly the same way as the FLAGS keyword
- described above. This is useful if you don't like the
- default settings of Copy, since you can change them by
- simply including a Set command in your startup script. For
- example, if you always want the original date of your files
- preserved on a Copy, you can do a Set copyflags=C to
- effectively alter Copy's defaults. Note however, that if
- you do specify a FLAG's argument to Copy, it will override
- the environment variables settings completely.
-
- EXAMPLES
- SET copyflags=d ; All copies are now protected from deletion.
- COPY c: df1:c ; All copied files are protected from deletion.
-
- COPY Include my*file
- The above copies all files from the Include to the current
- directory, prefixing each one with 'my' and terminating each
- one with 'file'. So 'Include/LOST' becomes 'myLOSTfile' in
- the current directory.
-
- Finally, notice that the following command (which copies
- filenotes as well) will not protect the copied files from
- deletion, in spite of the earlier Set copyflags=d we issued,
- because the FLAGS argument overrides the environment
- variable:
-
- Copy df0: to DF1: ALL QUIET FLAGS N
-
- The above copies the entire contents of the disk in drive 0
- to the disk in drive 1, silently, and in addition also
- copies the filenotes.
-
-
-
-
-
-
-
- Page 2 (printed 2/22/88)
-
-
-
-